package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "sc_mall_user_activity_ranking_detail")
public class MallUserActivityRankingDetail extends SuperEntity implements Serializable {
    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称")
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @TableField(value = "phone_number")
    private String phoneNumber;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 累计额度
     */
    @ApiModelProperty(value = "累计额度")
    @TableField(value = "confirmed_total_amount")
    private BigDecimal confirmedTotalAmount;

    /**
     * 消费金额
     */
    @ApiModelProperty(value = "消费金额")
    @TableField(value = "total_amount")
    private BigDecimal totalAmount;

    /**
     * 排行榜周期id
     */
    @ApiModelProperty(value = "排行榜周期id")
    @TableField(value = "ranking_cycle_id")
    private Long rankingCycleId;

    @ApiModelProperty("更新累计金额时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_confirmed_total_amount_time")
    protected Date modifyConfirmedTotalAmountTime;

    @ApiModelProperty(value = "排名")
    @TableField(exist = false)
    private Integer ranking;


}